/**
 * 
 */
package com.eight.pageInfo;

/**
 * <p>Company: B505信息技术研究所 </p> 
 * @Description: 封装Dto对象
 * @Create Date: 2017年11月26日上午11:26:44
 * @Version: V1.00 
 * @Author: yulin
 */
public class SortDto {
	
	// 排序方式
	private String orderType;
	// 排序字段
	private String orderField;
	
	/**
	 * @return the orderType
	 */
	public String getOrderType() {
		return orderType;
	}
	/**
	 * @param orderType the orderType to set
	 */
	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}
	/**
	 * @return the orderField
	 */
	public String getOrderField() {
		return orderField;
	}
	/**
	 * @param orderField the orderField to set
	 */
	public void setOrderField(String orderField) {
		this.orderField = orderField;
	}
	
	public SortDto(String orderType, String orderField) {
        this.orderType = orderType;
        this.orderField = orderField;
    }

    //默认为ASCE排序
    public SortDto(String orderField) {
        this.orderField = orderField;
        this.orderType = "asce";
    }
	
    
	@Override
	public String toString() {
		return "SortDto [orderType=" + orderType + ", orderField=" + orderField
				+ "]";
	}
    
    


}
